using Smart.Model;

namespace Smart.Hotfix.TABLE
{
	[TableLoader]
	public class CLIENTTIPSExtend : ITableLoader
	{
		public string FileName => "CLIENTTIPS";
		public void Init(TableData tableData)
		{
			CLIENTTIPS.__data = tableData;
		}
		public object CreateAndBind(TableHandle handle)
		{
			var item = new CLIENTTIPS();
			item.handle = handle;
			return item;
		}
		public void Bind(object item, TableHandle handle)
		{
			(item as CLIENTTIPS).handle = handle;
		}
	}

	public class CLIENTTIPS : ITable
	{
		public TableHandle handle;
		public static TableData __data;
		public int id
		{
			get
			{
				return __data.intValues[handle.intOffset + 0];
			}
		}
		public string context
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 1] & 0xFFFFF];
			}
		}
		public string remark
		{
			get
			{
				return __data.varStringValues[__data.intValues[handle.intOffset + 2] & 0xFFFFF];
			}
		}
	}
}
